# -*- coding: utf-8 -*-
from tank.core.documents import Document


class Menu(Document):
    _name = 'admin.menu'
    _schema = {
        'type': 'object',
        'properties': {
            'name': {'type': 'string'},
            'parent': {'anyOf': [{'type': 'ObjectId'}, {'type': 'null'}]},

        }
    }
